<?php
/**
 * Admin side of phpMyMovieBox
 *
 *
 * LICENSE: Some license information
 *
 * phpMMB version: 0.0.1
 *
 * $copyright  2007 SaWey
 * $license    GNU GPL v3.
 * $URL: http://www.sawey.be/phpMyMovieBox $
 * $Revision: 6 $
 * $LastChangedBy: sander.weyens $
 * $Date: 2008-01-14 22:20:38 +0000 (Mon, 14 Jan 2008) $
*/

//authenticate user


//get admin page request
$admin_page = $_GET['sub'];
//get function request
$function 	= $_GET['f'];

//create header
$tpl->define_dynamic('admin_menu', 'menu');

//include the requested page
switch($admin_page)
{
	case 'mymovies':
		include('admin/mymovies.php');
		break;
		
	case 'loan':
		include('admin/loan.php');
		break;
		
	case 'history':
		include('admin/history.php');
		break;
		
	case 'users':
		include('admin/users.php');
		break;
		
	case 'config':
		include('admin/config.php');
		break;
		
	case 'logout':
		$user->log_out();
		break;
		
	default:
		include('admin/main.php');
		break;

}

$tpl->parse('MENU',".admin_menu");
?>